版本管理API
获取版本信息
接口地址
GET /api/v1.0/invoke/open-ability/method/versions
请求参数
| 参数名 | 类型 | 位置 | 必填 | 说明 |
|---|---|---|---|---|
| Content-Type | String | Header | 是 | 内容类型,值为application/json |
| Accept | String | Header | 是 | 接受类型,值为application/json |
返回参数
| 参数名 | 类型 | 位置 | 说明 |
|---|---|---|---|
| Content-Type | String | Header | 内容类型,值为application/json |
| success | Boolean | Body | 判断请求是否成功 true:成功 false:失败 |
| timestamp | Integer | Body | 时间戳 |
| result | Object<result> | Body | 返回结果 |
result说明
| 参数名 | 类型 | 位置 | 说明 |
|---|---|---|---|
| version_id | String | Body | 版本ID |
| version | String | Body | 平台版本 |
| support | String | Body | 最低兼容 |
| remark | String | Body | 备注 |
请求示例
GET /api/v1.0/invoke/open-ability/method/versions
Content-Type: application/json
Accept: application/json
成功返回示例
状态码:200
Content-Type: application/json
{
"success": true,
"timestamp": 1540869200562,
"result": {
"version_id": "ve13a8919d43f40cbbd0524f1e2f57bd2",
"version": "1.0",
"support": "",
"remark": ""
}
}
失败返回示例
见 接口失败返回